<?php
require_once 'controls/global_frontend.php';
if(isset($_GET['action'])) {
if($_GET['action']=='cancel'){$_SESSION['action'] = ''; header("Location:index.php");}
elseif($_GET['action']=='registration'){$_SESSION['action'] = 'registration'; header("Location:index.php");}
elseif ($_GET['action']=='login'){$_SESSION['action'] = 'login'; header("Location:index.php");}
elseif ($_GET['action']=='logout'){session_destroy();header("Location:index.php");}
}
else if(!isset($_SESSION['action'])) {$_SESSION['action'] = '';}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Best Super Bowl Ads of All Time</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/style_slide.css" />
<link rel="stylesheet" type="text/css" href="css/register.css" />
<link rel="stylesheet" type="text/css" href="css/faux-select.css" />
<link rel="stylesheet" type="text/css" href="css/registration_form.css" />
<link rel="stylesheet" type="text/css" href="css/login_form.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script>
<script type="text/javascript" src="js/faux-select.js"></script>
<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>


</head>
<body>
	<div id="wapper">
    	<!--HEADER-->
    		<?php include "templates/header.php";?>
    	<!--END HEADER-->
		<!-- BODY -->
			<?php if($_SESSION['action']!='registration' && $_SESSION['action']!='login') include "templates/body.php";?>
		<!-- END BODY -->
    </div>
    	<!-- FOOTER -->
			<?php include "templates/footer.php";?>
		<!-- END FOOTER -->
</body>
</html>
